package com.andyou.rest.service;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.andyou.common.service.CrudService;
import com.andyou.rest.dao.ImplLsDataDao;
import com.andyou.rest.entity.ImplLsData;

@Service
@Transactional(readOnly = true)
public class ImplLsDataService extends CrudService<ImplLsDataDao, ImplLsData> {

	@Autowired
	private ImplLsDataDao implLsDataDao;
	
	/**
     * 获取大屏展示数据统计结果
     * @param entity
     * @return
     */
	public List<ImplLsData> findStatisticalList(ImplLsData entity)
	{
		return implLsDataDao.findStatisticalList(entity);
	}
	
	public void dayEnd (Date date)
	{
		ImplLsData ild = new ImplLsData();
		
		ild.preInsert();
		implLsDataDao.insert(ild);
	}
	
}
